import * as ImageItem from "./image_item";

export var vscode: any = null;

class WebVsCodeApi {

    public setState(data: any) {

    }

    public getState(): any {

        let dir11 = [
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),

            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",),
            new ImageItem.ImageFile("1", "1111", "https://gd-hbimg.huaban.com/6cb1fa4fb074623493bab5896eea1969b56f084918906d-wvKv18_fw1200webp",)]

        let dir1 = new ImageItem.ImageDir("1", "11")
        dir1.chidler = dir11

        return {
            imageList: [
                dir1,
            ]
        };

    }
    public postMessage(data: any) {

    }
}


try {
    if (vscode == null) {
        vscode = (window as any).acquireVsCodeApi();
    }
} catch (exception) {
    vscode = new WebVsCodeApi();
}


